package com.common.auth.api.service;

import com.common.auth.api.dto.OrganizationDto;
import com.common.auth.dao.OrganizationMapper;
import com.common.auth.po.OrganizationPo;
import com.common.service.MapperService;

import java.util.List;

/**
 * <p>
 * 组织机构表服务类
 * </p>
 *
 * @author system
 * @since 2024-03-08
 */
public abstract class OrganizationService extends MapperService<OrganizationPo, OrganizationDto, OrganizationMapper> {


    /**
     *  根据主键删除组织机构
     * @param orgId
     * @return
     */
    public abstract void deleteOrgById(String orgId);


    /**
     * 查询组织机构树
     * @return
     */
    public abstract List<OrganizationDto> queryOrgTreeList();


}
